/**
* Copyright (c) 2015 UNI-TREND Co., Ltd.
* All rights reserved.  
*  
* @file        Cali.h
* @brief       self calibration interfaces
* @version     1.0 
* @author      
* @Email       
* @date        2015-11-25
*/
#ifndef _CALI_H
#define _CALI_H

extern "C" void CaliChannel(void);
extern "C" void InstallManual(void);
extern "C" struct Dialog Dialog_ManualCali;

///extern "C" struct Dialog Dialog_AutoCali;
///extern "C" int CaliTGLevel(int step);
///extern "C" void SelfCalibrate(short);
///extern "C" void InstallSelf(void);
///extern "C" short IsSelf(void);
///extern "C" void SetAD5623(short Port, short Value);

#define HARDWARE_VERTION1 0x5416
#define HARDWARE_VERTION2 0x55AA
#define READ_DATA_WAIT_TIME (150)

#define ADJ_ERR_NO        0
#define ADJ_ERR_OFFS    1
//#define ADJ_ERR_GAIN    2
#define ADJ_ERR_OTHER    3
#define ADJ_ERR_PREOFS    2

// draw dialog
#define CaBAR_X0        (116 + 10)
#define CaBAR_Y0        (270 + 55)
#define CaBAR_X1        (CaBAR_X0 + 63 * 7 + 4)//592+65+10
#define CaBAR_Y1        (290 + 55)
#define CaTIP_INFO_X0   (100 + 10)
#define Dialog_Width_Manual     50    
#define Dialog_Height_Manual    10

#endif //_CALI_H

